﻿<span style='font-size:11px; color:#000000; background:#ffffff; '><pre>
<span style='color:#800000; font-weight:bold; '>Protected</span> <span style='color:#800000; font-weight:bold; '>Sub</span> createPdfButton_Click<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>ByVal</span> sender <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>Object</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>ByVal</span> e <span style='color:#800000; font-weight:bold; '>As</span> EventArgs<span style='color:#808030; '>)</span>
    <span style='color:#696969; '>' Create a PDF document</span>
    <span style='color:#800000; font-weight:bold; '>Dim</span> pdfDocument <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> Document<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span>

    <span style='color:#696969; '>' Set license key received after purchase to use the converter in licensed mode</span>
    <span style='color:#696969; '>' Leave it not set to use the converter in demo mode</span>
    pdfDocument<span style='color:#008c00; '>.</span>LicenseKey <span style='color:#808030; '>=</span> <span style='color:#0000e6; '>"4W9+bn19bn5ue2B+bn1/YH98YHd3d3c="</span>

    <span style='color:#800000; font-weight:bold; '>Try</span>
        <span style='color:#696969; '>' The result of adding elements to PDF document</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> addElementResult <span style='color:#800000; font-weight:bold; '>As</span> AddElementResult <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>Nothing</span>

        <span style='color:#696969; '>' The titles font used to mark various sections of the PDF document</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> titleFont <span style='color:#800000; font-weight:bold; '>As</span> PdfFont <span style='color:#808030; '>=</span> pdfDocument<span style='color:#008c00; '>.</span>AddFont<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>New</span> Font<span style='color:#808030; '>(</span><span style='color:#0000e6; '>"Times New Roman"</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>12</span><span style='color:#808030; '>,</span> FontStyle<span style='color:#008c00; '>.</span>Bold<span style='color:#808030; '>,</span> GraphicsUnit<span style='color:#008c00; '>.</span>Point<span style='color:#808030; '>)</span><span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' The position on X anf Y axes where to add the next element</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> yLocation <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>Single</span> <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> xLocation <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>Single</span> <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>

        <span style='color:#696969; '>' Create a PDF page in PDF document</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> pdfPage <span style='color:#800000; font-weight:bold; '>As</span> PdfPage <span style='color:#808030; '>=</span> pdfDocument<span style='color:#008c00; '>.</span>AddPage<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Line Elements</span>

        <span style='color:#696969; '>' Add section title</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> titleTextElement <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> TextElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#0000e6; '>"Line Elements"</span><span style='color:#808030; '>,</span> titleFont<span style='color:#808030; '>)</span>
        titleTextElement<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Black
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>titleTextElement<span style='color:#808030; '>)</span>
        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPageBounds<span style='color:#008c00; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>10</span>
        xLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPdfPage

        <span style='color:#696969; '>' Add a line with default properties</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> lineElement <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> LineElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>lineElement<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add a bold line</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> boldLineElement <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> LineElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>110</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span>
        boldLineElement<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>3</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>boldLineElement<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add dotted line</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> dottedLineElement <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> LineElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>120</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>170</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span>
        dottedLineElement<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineDashStyle <span style='color:#808030; '>=</span> LineDashStyle<span style='color:#008c00; '>.</span>Dot
        dottedLineElement<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Green
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>dottedLineElement<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add a dashed line</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> dashedLineElement <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> LineElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>180</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>230</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span>
        dashedLineElement<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineDashStyle <span style='color:#808030; '>=</span> LineDashStyle<span style='color:#008c00; '>.</span>Dash
        dashedLineElement<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Green
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>dashedLineElement<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add a dash-dot-dot line</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> dashDotDotLineElement <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> LineElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>240</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>290</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span>
        dashDotDotLineElement<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineDashStyle <span style='color:#808030; '>=</span> LineDashStyle<span style='color:#008c00; '>.</span>DashDotDot
        dashDotDotLineElement<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Green
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>dashDotDotLineElement<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add a bold line with rounded cap style</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> roundCapBoldLine <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> LineElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>300</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>350</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span>
        roundCapBoldLine<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        roundCapBoldLine<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineCapStyle <span style='color:#808030; '>=</span> LineCapStyle<span style='color:#008c00; '>.</span>RoundCap
        roundCapBoldLine<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Blue
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>roundCapBoldLine<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add a bold line with projecting square cap style</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> projectingSquareCapBoldLine <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> LineElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>360</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>410</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span>
        projectingSquareCapBoldLine<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        projectingSquareCapBoldLine<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineCapStyle <span style='color:#808030; '>=</span> LineCapStyle<span style='color:#008c00; '>.</span>ProjectingSquareCap
        projectingSquareCapBoldLine<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Blue
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>projectingSquareCapBoldLine<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add a bold line with projecting butt cap style</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> buttCapBoldLine <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> LineElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>420</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>470</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span>
        buttCapBoldLine<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        buttCapBoldLine<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineCapStyle <span style='color:#808030; '>=</span> LineCapStyle<span style='color:#008c00; '>.</span>ButtCap
        buttCapBoldLine<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Blue
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>buttCapBoldLine<span style='color:#808030; '>)</span>

        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPageBounds<span style='color:#008c00; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>3</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPdfPage

        <span style='color:#696969; '>' Line Join Styles</span>

        <span style='color:#696969; '>' Add section title</span>
        xLocation <span style='color:#808030; '>-</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        yLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>10</span>
        titleTextElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>New</span> TextElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#0000e6; '>"Line Join and Cap Styles"</span><span style='color:#808030; '>,</span> titleFont<span style='color:#808030; '>)</span>
        titleTextElement<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Black
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>titleTextElement<span style='color:#808030; '>)</span>
        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPageBounds<span style='color:#008c00; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>10</span>
        xLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPdfPage

        <span style='color:#696969; '>' Add graphic path with miter join line style</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> miterJoinPath <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> PathElement<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span>
        <span style='color:#696969; '>' Add path lines</span>
        miterJoinPath<span style='color:#008c00; '>.</span>AddLineSegment<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>25</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>)</span>
        miterJoinPath<span style='color:#008c00; '>.</span>AddLineSegment<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span>
        <span style='color:#696969; '>' Set path style</span>
        miterJoinPath<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        miterJoinPath<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineCapStyle <span style='color:#808030; '>=</span> LineCapStyle<span style='color:#008c00; '>.</span>ProjectingSquareCap
        miterJoinPath<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineJoinStyle <span style='color:#808030; '>=</span> LineJoinStyle<span style='color:#008c00; '>.</span>MiterJoin
        miterJoinPath<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Coral
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>miterJoinPath<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add graphic path with round join line style</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> roundJoinPath <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> PathElement<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>70</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span>
        <span style='color:#696969; '>' Add path lines</span>
        roundJoinPath<span style='color:#008c00; '>.</span>AddLineSegment<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>95</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>)</span>
        roundJoinPath<span style='color:#008c00; '>.</span>AddLineSegment<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>120</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span>
        <span style='color:#696969; '>' Set path style</span>
        roundJoinPath<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        roundJoinPath<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineCapStyle <span style='color:#808030; '>=</span> LineCapStyle<span style='color:#008c00; '>.</span>RoundCap
        roundJoinPath<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineJoinStyle <span style='color:#808030; '>=</span> LineJoinStyle<span style='color:#008c00; '>.</span>RoundJoin
        roundJoinPath<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Coral
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>roundJoinPath<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add graphic path with bevel join line style</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> bevelJoinPath <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> PathElement<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>140</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span>
        <span style='color:#696969; '>' Add lines to path</span>
        bevelJoinPath<span style='color:#008c00; '>.</span>AddLineSegment<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>165</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>)</span>
        bevelJoinPath<span style='color:#008c00; '>.</span>AddLineSegment<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>190</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span>
        <span style='color:#696969; '>' Set path style</span>
        bevelJoinPath<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        bevelJoinPath<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineCapStyle <span style='color:#808030; '>=</span> LineCapStyle<span style='color:#008c00; '>.</span>ButtCap
        bevelJoinPath<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineJoinStyle <span style='color:#808030; '>=</span> LineJoinStyle<span style='color:#008c00; '>.</span>BevelJoin
        bevelJoinPath<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Coral
        <span style='color:#696969; '>' Add element to document</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>bevelJoinPath<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add a polygon with miter join line style</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> polygonPoints<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span> <span style='color:#800000; font-weight:bold; '>As</span> PointF <span style='color:#808030; '>=</span> {<span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>210</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>235</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>260</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span>}
        <span style='color:#800000; font-weight:bold; '>Dim</span> miterJoinPolygon <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> PolygonElement<span style='color:#808030; '>(</span>polygonPoints<span style='color:#808030; '>)</span>
        <span style='color:#696969; '>' Set polygon style</span>
        miterJoinPolygon<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        miterJoinPolygon<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineJoinStyle <span style='color:#808030; '>=</span> LineJoinStyle<span style='color:#008c00; '>.</span>MiterJoin
        miterJoinPolygon<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Green
        miterJoinPolygon<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>AliceBlue
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>miterJoinPolygon<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add a polygon with round join line style</span>
        polygonPoints <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span> {<span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>280</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>305</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>330</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span>}
        <span style='color:#800000; font-weight:bold; '>Dim</span> roundJoinPolygon <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> PolygonElement<span style='color:#808030; '>(</span>polygonPoints<span style='color:#808030; '>)</span>
        <span style='color:#696969; '>' Set polygon style</span>
        roundJoinPolygon<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        roundJoinPolygon<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineJoinStyle <span style='color:#808030; '>=</span> LineJoinStyle<span style='color:#008c00; '>.</span>RoundJoin
        roundJoinPolygon<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Green
        roundJoinPolygon<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Blue
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>roundJoinPolygon<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add a polygon with bevel join line style</span>
        polygonPoints <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span> {<span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>350</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>375</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>400</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span>}
        <span style='color:#800000; font-weight:bold; '>Dim</span> bevelJoinPolygon <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> PolygonElement<span style='color:#808030; '>(</span>polygonPoints<span style='color:#808030; '>)</span>
        <span style='color:#696969; '>' Set polygon style</span>
        bevelJoinPolygon<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        bevelJoinPolygon<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineJoinStyle <span style='color:#808030; '>=</span> LineJoinStyle<span style='color:#008c00; '>.</span>BevelJoin
        bevelJoinPolygon<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Green
        bevelJoinPolygon<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Blue
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>bevelJoinPolygon<span style='color:#808030; '>)</span>

        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPageBounds<span style='color:#008c00; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>3</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPdfPage

        <span style='color:#696969; '>' Add a Graphics Path Element</span>

        <span style='color:#696969; '>' Add section title</span>
        xLocation <span style='color:#808030; '>-</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        yLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>10</span>
        titleTextElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>New</span> TextElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#0000e6; '>"Path Elements"</span><span style='color:#808030; '>,</span> titleFont<span style='color:#808030; '>)</span>
        titleTextElement<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Black
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>titleTextElement<span style='color:#808030; '>)</span>
        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPageBounds<span style='color:#008c00; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>10</span>
        xLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPdfPage

        <span style='color:#696969; '>' Create the path </span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> graphicsPath <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> PathElement<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>)</span>
        <span style='color:#696969; '>' Add line and Bezier curve segments</span>
        graphicsPath<span style='color:#008c00; '>.</span>AddLineSegment<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span>
        graphicsPath<span style='color:#008c00; '>.</span>AddBezierCurveSegment<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>200</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>250</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span>
        graphicsPath<span style='color:#008c00; '>.</span>AddLineSegment<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>300</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>)</span>
        <span style='color:#696969; '>' Close path</span>
        graphicsPath<span style='color:#008c00; '>.</span>ClosePath <span style='color:#808030; '>=</span> <span style='color:#0f4d75; '>True</span>
        <span style='color:#696969; '>' Set path style</span>
        graphicsPath<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>3</span>
        graphicsPath<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineJoinStyle <span style='color:#808030; '>=</span> LineJoinStyle<span style='color:#008c00; '>.</span>MiterJoin
        graphicsPath<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineCapStyle <span style='color:#808030; '>=</span> LineCapStyle<span style='color:#008c00; '>.</span>RoundCap
        graphicsPath<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Green
        <span style='color:#696969; '>'graphicsPath.BackColor = Color.Green;</span>
        graphicsPath<span style='color:#008c00; '>.</span>Gradient <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>New</span> GradientColor<span style='color:#808030; '>(</span>GradientDirection<span style='color:#008c00; '>.</span>Vertical<span style='color:#808030; '>,</span> Color<span style='color:#008c00; '>.</span>LightGreen<span style='color:#808030; '>,</span> Color<span style='color:#008c00; '>.</span>Blue<span style='color:#808030; '>)</span>
        <span style='color:#696969; '>' Add element to document</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>graphicsPath<span style='color:#808030; '>)</span>

        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPageBounds<span style='color:#008c00; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>3</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPdfPage

        <span style='color:#696969; '>' Add Circle Elements</span>

        <span style='color:#696969; '>' Add section title</span>
        xLocation <span style='color:#808030; '>-</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        yLocation <span style='color:#808030; '>-</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>10</span>
        titleTextElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>New</span> TextElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#0000e6; '>"Circle Elements"</span><span style='color:#808030; '>,</span> titleFont<span style='color:#808030; '>)</span>
        titleTextElement<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Black
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>titleTextElement<span style='color:#808030; '>)</span>
        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPageBounds<span style='color:#008c00; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>10</span>
        xLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPdfPage

        <span style='color:#696969; '>' Add a Circle Element with default settings</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> circleElement <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>)</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>circleElement<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add dotted circle element</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> dottedCircleElement <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>)</span>
        dottedCircleElement<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Green
        dottedCircleElement<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineDashStyle <span style='color:#808030; '>=</span> LineDashStyle<span style='color:#008c00; '>.</span>Dot
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>dottedCircleElement<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add a disc</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> discElement <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>170</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>)</span>
        discElement<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Green
        discElement<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>LightGray
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>discElement<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add disc with bold border</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> discWithBoldBorder <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>240</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>)</span>
        discWithBoldBorder<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        discWithBoldBorder<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Coral
        discWithBoldBorder<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Blue
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>discWithBoldBorder<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add colored disc with bold border</span>
        <span style='color:#800000; font-weight:bold; '>For</span> i <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>Integer</span> <span style='color:#808030; '>=</span> <span style='color:#008c00; '>30</span> <span style='color:#800000; font-weight:bold; '>To</span> <span style='color:#008c00; '>0</span> <span style='color:#800000; font-weight:bold; '>Step</span> <span style='color:#808030; '>-</span><span style='color:#008c00; '>3</span>
            <span style='color:#800000; font-weight:bold; '>Dim</span> coloredDisc <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>310</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>If</span><span style='color:#808030; '>(</span>i <span style='color:#808030; '>=</span> <span style='color:#008c00; '>0</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>1</span><span style='color:#808030; '>,</span> i<span style='color:#808030; '>)</span><span style='color:#808030; '>)</span>
            coloredDisc<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>3</span>
            <span style='color:#800000; font-weight:bold; '>Select</span> <span style='color:#800000; font-weight:bold; '>Case</span> <span style='color:#808030; '>(</span>i \ <span style='color:#008c00; '>3</span><span style='color:#808030; '>)</span> <span style='color:#800000; font-weight:bold; '>Mod</span> <span style='color:#008c00; '>7</span>
                <span style='color:#800000; font-weight:bold; '>Case</span> <span style='color:#008c00; '>0</span>
                    coloredDisc<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Red
                <span style='color:#800000; font-weight:bold; '>Case</span> <span style='color:#008c00; '>1</span>
                    coloredDisc<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Orange
                <span style='color:#800000; font-weight:bold; '>Case</span> <span style='color:#008c00; '>2</span>
                    coloredDisc<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Yellow
                <span style='color:#800000; font-weight:bold; '>Case</span> <span style='color:#008c00; '>3</span>
                    coloredDisc<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Green
                <span style='color:#800000; font-weight:bold; '>Case</span> <span style='color:#008c00; '>4</span>
                    coloredDisc<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Blue
                <span style='color:#800000; font-weight:bold; '>Case</span> <span style='color:#008c00; '>5</span>
                    coloredDisc<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Indigo
                <span style='color:#800000; font-weight:bold; '>Case</span> <span style='color:#008c00; '>6</span>
                    coloredDisc<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Violet
                <span style='color:#800000; font-weight:bold; '>Case</span> <span style='color:#800000; font-weight:bold; '>Else</span>
            <span style='color:#800000; font-weight:bold; '>End</span> <span style='color:#800000; font-weight:bold; '>Select</span>
            addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>coloredDisc<span style='color:#808030; '>)</span>
        <span style='color:#800000; font-weight:bold; '>Next</span> i

        <span style='color:#696969; '>' Add a doughnut</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> exteriorNoBorderDisc <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>380</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>)</span>
        exteriorNoBorderDisc<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Coral
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>exteriorNoBorderDisc<span style='color:#808030; '>)</span>

        <span style='color:#800000; font-weight:bold; '>Dim</span> interiorNoBorderDisc <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>380</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>15</span><span style='color:#808030; '>)</span>
        interiorNoBorderDisc<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>White
        pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>interiorNoBorderDisc<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add a simple disc</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> simpleDisc <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>450</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>)</span>
        simpleDisc<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Green
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>simpleDisc<span style='color:#808030; '>)</span>

        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPageBounds<span style='color:#008c00; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>3</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPdfPage

        <span style='color:#696969; '>' Add Ellipse Elements</span>

        <span style='color:#696969; '>' Add section title</span>
        xLocation <span style='color:#808030; '>-</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        yLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>10</span>
        titleTextElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>New</span> TextElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#0000e6; '>"Ellipse Elements"</span><span style='color:#808030; '>,</span> titleFont<span style='color:#808030; '>)</span>
        titleTextElement<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Black
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>titleTextElement<span style='color:#808030; '>)</span>
        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPageBounds<span style='color:#008c00; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>10</span>
        xLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPdfPage

        <span style='color:#696969; '>' Add an Ellipse Element with default settings</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> ellipseElement <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> EllipseElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>)</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseElement<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add an Ellipse Element with background color and line color</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> ellipseWithBackgroundAndBorder <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> EllipseElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>160</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>)</span>
        ellipseWithBackgroundAndBorder<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>LightGray
        ellipseWithBackgroundAndBorder<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Green
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseWithBackgroundAndBorder<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Create an ellipse from multiple Ellipse Arc Elements</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> ellipseArcElement1 <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> EllipseArcElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>220</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>0</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>)</span>
        ellipseArcElement1<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Coral
        ellipseArcElement1<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>3</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseArcElement1<span style='color:#808030; '>)</span>

        <span style='color:#800000; font-weight:bold; '>Dim</span> ellipseArcElement2 <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> EllipseArcElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>220</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>)</span>
        ellipseArcElement2<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Blue
        ellipseArcElement2<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>3</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseArcElement2<span style='color:#808030; '>)</span>

        <span style='color:#800000; font-weight:bold; '>Dim</span> ellipseArcElement3 <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> EllipseArcElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>220</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>180</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>)</span>
        ellipseArcElement3<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Green
        ellipseArcElement3<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>3</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseArcElement3<span style='color:#808030; '>)</span>

        <span style='color:#800000; font-weight:bold; '>Dim</span> ellipseArcElement4 <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> EllipseArcElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>220</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>270</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>)</span>
        ellipseArcElement4<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Violet
        ellipseArcElement4<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>3</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseArcElement4<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Create an ellipse from multiple Ellipse Slice Elements</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> ellipseSliceElement1 <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> EllipseSliceElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>330</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>0</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>90</span><span style='color:#808030; '>)</span>
        ellipseSliceElement1<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Coral
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseSliceElement1<span style='color:#808030; '>)</span>

        <span style='color:#800000; font-weight:bold; '>Dim</span> ellipseSliceElement2 <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> EllipseSliceElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>330</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>90</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>90</span><span style='color:#808030; '>)</span>
        ellipseSliceElement2<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Blue
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseSliceElement2<span style='color:#808030; '>)</span>

        <span style='color:#800000; font-weight:bold; '>Dim</span> ellipseSliceElement3 <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> EllipseSliceElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>330</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>180</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>90</span><span style='color:#808030; '>)</span>
        ellipseSliceElement3<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Green
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseSliceElement3<span style='color:#808030; '>)</span>

        <span style='color:#800000; font-weight:bold; '>Dim</span> ellipseSliceElement4 <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> EllipseSliceElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>330</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>270</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>90</span><span style='color:#808030; '>)</span>
        ellipseSliceElement4<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Violet
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseSliceElement4<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add an Ellipse Element with background</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> ellipseWithBackground <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> EllipseElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>490</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>)</span>
        ellipseWithBackground<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Green
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseWithBackground<span style='color:#808030; '>)</span>

        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPageBounds<span style='color:#008c00; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>3</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPdfPage

        <span style='color:#696969; '>' Add Rectangle Elements</span>

        <span style='color:#696969; '>' Add section title</span>
        xLocation <span style='color:#808030; '>-</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        yLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>10</span>
        titleTextElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>New</span> TextElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#0000e6; '>"Rectangle Elements"</span><span style='color:#808030; '>,</span> titleFont<span style='color:#808030; '>)</span>
        titleTextElement<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Black
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>titleTextElement<span style='color:#808030; '>)</span>
        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPageBounds<span style='color:#008c00; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>10</span>
        xLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPdfPage

        <span style='color:#696969; '>' Add a Rectangle Element with default settings</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> rectangleElement <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> RectangleElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>)</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>rectangleElement<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add a Rectangle Element with background color and dotted line</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> rectangleElementWithDottedLine <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> RectangleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>110</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>)</span>
        rectangleElementWithDottedLine<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>LightGray
        rectangleElementWithDottedLine<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Green
        rectangleElementWithDottedLine<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineDashStyle <span style='color:#808030; '>=</span> LineDashStyle<span style='color:#008c00; '>.</span>Dot
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>rectangleElementWithDottedLine<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add a Rectangle Element with background color without border</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> rectangleElementWithoutBorder <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> RectangleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>220</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>)</span>
        rectangleElementWithoutBorder<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Green
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>rectangleElementWithoutBorder<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add a Rectangle Element with background color, bold border line and rounded corners</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> rectangleElementWithRoundedCorners <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> RectangleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>330</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>)</span>
        rectangleElementWithRoundedCorners<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Coral
        rectangleElementWithRoundedCorners<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Blue
        rectangleElementWithRoundedCorners<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        rectangleElementWithRoundedCorners<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineJoinStyle <span style='color:#808030; '>=</span> LineJoinStyle<span style='color:#008c00; '>.</span>RoundJoin
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>rectangleElementWithRoundedCorners<span style='color:#808030; '>)</span>

        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPageBounds<span style='color:#008c00; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>3</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPdfPage

        <span style='color:#696969; '>' Add Polygon Elements</span>

        <span style='color:#696969; '>' Add section title</span>
        xLocation <span style='color:#808030; '>-</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        yLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>10</span>
        titleTextElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>New</span> TextElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#0000e6; '>"Polygon Elements"</span><span style='color:#808030; '>,</span> titleFont<span style='color:#808030; '>)</span>
        titleTextElement<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Black
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>titleTextElement<span style='color:#808030; '>)</span>
        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPageBounds<span style='color:#008c00; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>10</span>
        xLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPdfPage

        <span style='color:#800000; font-weight:bold; '>Dim</span> polygonElementPoints<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span> <span style='color:#800000; font-weight:bold; '>As</span> PointF <span style='color:#808030; '>=</span> {<span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>)</span>}

        <span style='color:#696969; '>' Add a Polygon Element with default settings</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> polygonElement <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> PolygonElement<span style='color:#808030; '>(</span>polygonElementPoints<span style='color:#808030; '>)</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>polygonElement<span style='color:#808030; '>)</span>

        polygonElementPoints <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span> {<span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>110</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>160</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>210</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>160</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>)</span>}

        <span style='color:#696969; '>' Add a Polygon Element with background color and border</span>
        polygonElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>New</span> PolygonElement<span style='color:#808030; '>(</span>polygonElementPoints<span style='color:#808030; '>)</span>
        polygonElement<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>LightGray
        polygonElement<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Green
        polygonElement<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineDashStyle <span style='color:#808030; '>=</span> LineDashStyle<span style='color:#008c00; '>.</span>Dot
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>polygonElement<span style='color:#808030; '>)</span>

        polygonElementPoints <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span> {<span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>220</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>270</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>320</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>270</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>)</span>}

        <span style='color:#696969; '>' Add a Polygon Element with background color</span>
        polygonElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>New</span> PolygonElement<span style='color:#808030; '>(</span>polygonElementPoints<span style='color:#808030; '>)</span>
        polygonElement<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Green
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>polygonElement<span style='color:#808030; '>)</span>

        <span style='color:#800000; font-weight:bold; '>Dim</span> polyFillPoints<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span> <span style='color:#800000; font-weight:bold; '>As</span> PointF <span style='color:#808030; '>=</span> {<span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>330</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>380</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>430</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>New</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>380</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>)</span>}

        <span style='color:#696969; '>' Add a Polygon Element with background color and rounded line joins</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> polygonElementWithBackgruondColorAndBorder <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> PolygonElement<span style='color:#808030; '>(</span>polyFillPoints<span style='color:#808030; '>)</span>
        polygonElementWithBackgruondColorAndBorder<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Blue
        polygonElementWithBackgruondColorAndBorder<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Coral
        polygonElementWithBackgruondColorAndBorder<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        polygonElementWithBackgruondColorAndBorder<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineCapStyle <span style='color:#808030; '>=</span> LineCapStyle<span style='color:#008c00; '>.</span>RoundCap
        polygonElementWithBackgruondColorAndBorder<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineJoinStyle <span style='color:#808030; '>=</span> LineJoinStyle<span style='color:#008c00; '>.</span>RoundJoin
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>polygonElementWithBackgruondColorAndBorder<span style='color:#808030; '>)</span>

        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPageBounds<span style='color:#008c00; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>3</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPdfPage

        <span style='color:#696969; '>' Add Bezier Curve Elements</span>

        <span style='color:#696969; '>' Add section title</span>
        xLocation <span style='color:#808030; '>-</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        yLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>10</span>
        titleTextElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>New</span> TextElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#0000e6; '>"Bezier Curve Elements"</span><span style='color:#808030; '>,</span> titleFont<span style='color:#808030; '>)</span>
        titleTextElement<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Black
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>titleTextElement<span style='color:#808030; '>)</span>
        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPageBounds<span style='color:#008c00; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>10</span>
        xLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#008c00; '>.</span>EndPdfPage

        <span style='color:#696969; '>' Add a Bezier Curve Element with normal style</span>

        <span style='color:#800000; font-weight:bold; '>Dim</span> bezierCurveElement <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> BezierCurveElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>150</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span>
        bezierCurveElement<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Blue
        bezierCurveElement<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>3</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>bezierCurveElement<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Mark the points controlling the Bezier curve</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> controlPoint1 <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>200</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>2</span><span style='color:#808030; '>)</span>
        controlPoint1<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Violet
        pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>controlPoint1<span style='color:#808030; '>)</span>

        <span style='color:#800000; font-weight:bold; '>Dim</span> controlPoint2 <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>250</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>2</span><span style='color:#808030; '>)</span>
        controlPoint2<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Violet
        pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>controlPoint2<span style='color:#808030; '>)</span>

        <span style='color:#800000; font-weight:bold; '>Dim</span> controlPoint3 <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>300</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>2</span><span style='color:#808030; '>)</span>
        controlPoint3<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Violet
        pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>controlPoint3<span style='color:#808030; '>)</span>

        <span style='color:#800000; font-weight:bold; '>Dim</span> controlPoint4 <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>New</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>350</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>2</span><span style='color:#808030; '>)</span>
        controlPoint4<span style='color:#008c00; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Violet
        pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>controlPoint4<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Add a Bezier Curve Element with dotted line using the controlling points above</span>

        bezierCurveElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>New</span> BezierCurveElement<span style='color:#808030; '>(</span>controlPoint1<span style='color:#008c00; '>.</span>X<span style='color:#808030; '>,</span> controlPoint1<span style='color:#008c00; '>.</span>Y<span style='color:#808030; '>,</span> controlPoint2<span style='color:#008c00; '>.</span>X<span style='color:#808030; '>,</span> controlPoint2<span style='color:#008c00; '>.</span>Y<span style='color:#808030; '>,</span> controlPoint3<span style='color:#008c00; '>.</span>X<span style='color:#808030; '>,</span> controlPoint3<span style='color:#008c00; '>.</span>Y<span style='color:#808030; '>,</span> controlPoint4<span style='color:#008c00; '>.</span>X<span style='color:#808030; '>,</span> controlPoint4<span style='color:#008c00; '>.</span>Y<span style='color:#808030; '>)</span>
        bezierCurveElement<span style='color:#008c00; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#008c00; '>.</span>Green
        bezierCurveElement<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineDashStyle <span style='color:#808030; '>=</span> LineDashStyle<span style='color:#008c00; '>.</span>Dot
        bezierCurveElement<span style='color:#008c00; '>.</span>LineStyle<span style='color:#008c00; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>1</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#008c00; '>.</span>AddElement<span style='color:#808030; '>(</span>bezierCurveElement<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Save the PDF document in a memory buffer</span>
        <span style='color:#800000; font-weight:bold; '>Dim</span> outPdfBuffer<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span> <span style='color:#800000; font-weight:bold; '>As</span> <span style='color:#800000; font-weight:bold; '>Byte</span> <span style='color:#808030; '>=</span> pdfDocument<span style='color:#008c00; '>.</span>Save<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Send the PDF as response to browser</span>

        <span style='color:#696969; '>' Set response content type</span>
        Response<span style='color:#008c00; '>.</span>AddHeader<span style='color:#808030; '>(</span><span style='color:#0000e6; '>"Content-Type"</span><span style='color:#808030; '>,</span> <span style='color:#0000e6; '>"application/pdf"</span><span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Instruct the browser to open the PDF file as an attachment or inline</span>
        Response<span style='color:#008c00; '>.</span>AddHeader<span style='color:#808030; '>(</span><span style='color:#0000e6; '>"Content-Disposition"</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>String</span><span style='color:#008c00; '>.</span><span style='color:#800000; font-weight:bold; '>Format</span><span style='color:#808030; '>(</span><span style='color:#0000e6; '>"attachment; filename=Graphic_Elements.pdf; size={0}"</span><span style='color:#808030; '>,</span> outPdfBuffer<span style='color:#008c00; '>.</span>Length<span style='color:#008c00; '>.</span>ToString<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' Write the PDF document buffer to HTTP response</span>
        Response<span style='color:#008c00; '>.</span>BinaryWrite<span style='color:#808030; '>(</span>outPdfBuffer<span style='color:#808030; '>)</span>

        <span style='color:#696969; '>' End the HTTP response and stop the current page processing</span>
        Response<span style='color:#008c00; '>.</span><span style='color:#800000; font-weight:bold; '>End</span><span style='color:#808030; '>(</span><span style='color:#808030; '>)</span>
    <span style='color:#800000; font-weight:bold; '>Finally</span>
        <span style='color:#696969; '>' Close the PDF document</span>
        pdfDocument<span style='color:#008c00; '>.</span><span style='color:#800000; font-weight:bold; '>Close</span><span style='color:#808030; '>(</span><span style='color:#808030; '>)</span>
    <span style='color:#800000; font-weight:bold; '>End</span> <span style='color:#800000; font-weight:bold; '>Try</span>
<span style='color:#800000; font-weight:bold; '>End</span> <span style='color:#800000; font-weight:bold; '>Sub</span>
</pre>
</span>